package com.itcast.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "oid", type = IdType.AUTO)
    private Integer oid;

    @TableField("userId")
    private Integer userId;

    /**
     * 数量
     */
    private Integer count;

    /**
     * 小计
     */
    private Integer subtotal;

    /**
     * 总件数
     */
    @TableField("totalCount")
    private Integer totalCount;

    /**
     * 总价
     */
    @TableField("totalPrice")
    private Integer totalPrice;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("createDate")
    private Date createDate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("upDates")
    private Date upDates;

    private String ooid;

    @TableField("goodsName")
    private String goodsName;

    @TableField("goodsPrice")
    private BigDecimal goodsPrice;


}
